<div id="addStaffCommunityModel" class="modal fade" role="dialog" aria-labelledby="addStaffCommunityModelLabel"
    aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <h3 class="modal-title" id="addStaffCommunityModelLabel">
                    <vc:i18n name="小区" namespace="addStaffCommunity"></vc:i18n>
                </h3>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">

                <div class="ibox ">
                    <div class="row">
                        <div class="col-sm-4 m-b-xs">
                            <div class="input-group">
                                <input :placeholder="vc.i18n('输入小区名称','addStaffCommunity')" type="text"
                                    v-model.trim="addStaffCommunityInfo.communityName"
                                    class="form-control form-control-sm">
                            </div>
                        </div>
                        <div class="col-sm-5">
                            <button type="button" class="btn btn-sm btn-primary" v-on:click="queryCommunitys()">
                                <vc:i18n name="查询" namespace="addStaffCommunity"></vc:i18n>
                            </button>
                        </div>
                    </div>
                    <div class="table-responsive" style="margin-top:15px">
                        <table class="table table-striped">
                            <thead>
                                <tr>
                                    <th class="text-center">
                                        <input type="checkbox" class="i-checks " @click="checkAllCommunity($event)"
                                            id="quan">
                                    </th>
                                    <th class="text-center">
                                        <vc:i18n name="小区ID" namespace="addStaffCommunity"></vc:i18n>
                                    </th>
                                    <th class="text-center">
                                        <vc:i18n name="小区名称" namespace="addStaffCommunity"></vc:i18n>
                                    </th>
                                    <th class="text-center">
                                        <vc:i18n name="小区地址" namespace="addStaffCommunity"></vc:i18n>
                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr v-for="community in addStaffCommunityInfo.communitys">
                                    <td class="text-center">
                                        <input type="checkbox" class="i-checks checkItem"
                                            v-bind:value="community.communityId" @click="isCheckAll($event)"
                                            v-model="addStaffCommunityInfo.selectCommunitys">
                                    </td>
                                    <td class="text-center">{{community.communityId}}</td>
                                    <td class="text-center">{{community.name}}</td>
                                    <td class="text-center">{{community.address}}</td>
                                </tr>
                            </tbody>
                        </table>
                        <!-- 分页 -->
                        <vc:create namespace="addStaffCommunity" path="frame/paginationPlus"></vc:create>
                        <div class="ibox-content" v-if="addStaffCommunityInfo.communitys.length > 0">
                            <button class="btn btn-primary float-right" type="button" v-on:click="addStaffCommunity()">
                                <i class="fa fa-check"></i>&nbsp;提交
                            </button>
                            <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
                                data-dismiss="modal">
                                <vc:i18n name="取消" namespace="addStaffCommunity"></vc:i18n>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>